<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">买家信息</div>
                <div class="panel-body">
                    <div class="form-horizontal">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">头像:</label>
                            <div class="col-xs-12 col-sm-8">
                                <img src="{$row.user.avatar ?? ''}" width="150px" class="form-control-static" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">昵称:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.user.nickname ?? ''}</p>
                            </div>
                        </div>


                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">姓名:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.user.username ?? ''}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">手机号:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.user.mobile ?? ''}</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-default">
                <div class="panel-heading">交易信息</div>
                <div class="panel-body">
                    <div class="form-horizontal">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">课程缩略图:</label>
                            <div class="col-xs-12 col-sm-8">
                                <img src="{$row.course.thumb_image ?? ''}" width="150px" class="form-control-static" />
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">课程标题:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.course.name}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">订单号:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.order_no}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">单价:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.course.salesprice}</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">数量:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">x 1</p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">支付金额:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.pay_price}</p>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">支付状态:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{$row.pay_status_text}</p>
                            </div>
                        </div>
                        {if $row.pay_status=='2'}
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">支付时间:</label>
                            <div class="col-xs-12 col-sm-8">
                                <p class="form-control-static">{:datetime($row.createtime)}</p>
                            </div>
                        </div>
                        {/if}
                    </div>
                </div>
            </div>
        </div>
    </div>

    {if $row.pay_status == 1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="payStatusList" item="vo"}
            <label for="row[pay_status]-{$key}"><input id="row[pay_status]-{$key}" name="row[pay_status]" type="radio" value="{$key}" {in name="key" value="$row.pay_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
    {/if}
</form>
